public class ArrayHelper{
    public static boolean equal( int[] first , int[] second ){
        
        if(first.length != second.length){
            System.out.println("两个数组不相等");
            return false;
        }else{
            for(int i=0;i<first.length;i++){
                if(first[i] != second[i]){
                System.out.print("两个数组不相等"); 
            return false;}
            }
            System.out.print("两个数组相等");
            return true;
        }
    }
    public static void main(String[] args) {
        ArrayHelper a =new ArrayHelper();
        int[] first={2,1,3,7,9,6,7};
        int[] second={2,1,3,7,9,6};
        boolean x =a.equal(first, second);
        System.out.println(x);
        
    }
}